package com.niodata.dp.monitor.sharelib.entity.task;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

/**
 * Created by ndp on 17-7-10.
 */
public class TaskAlertMsg {

  private long id;
  private TaskResultType status;
  private Integer execId;
  private String taskId;
  private String taskName;
  private String flowName;
  private String message;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date startTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date nextExecTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date realStartTime;
  private String creator;
  private Long ownerId;
  private String ownerType;

  public String getCreator() {
    return creator;
  }

  public void setCreator(String creator) {
    this.creator = creator;
  }

  public Long getOwnerId() {
    return ownerId;
  }

  public void setOwnerId(Long ownerId) {
    this.ownerId = ownerId;
  }

  public String getOwnerType() {
    return ownerType;
  }

  public void setOwnerType(String ownerType) {
    this.ownerType = ownerType;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public TaskResultType getStatus() {
    return status;
  }

  public void setStatus(TaskResultType status) {
    this.status = status;
  }

  public Integer getExecId() {
    return execId;
  }

  public void setExecId(Integer execId) {
    this.execId = execId;
  }

  public String getTaskId() {
    return taskId;
  }

  public void setTaskId(String taskId) {
    this.taskId = taskId;
  }

  public String getTaskName() {
    return taskName;
  }

  public void setTaskName(String taskName) {
    this.taskName = taskName;
  }

  public String getFlowName() {
    return flowName;
  }

  public void setFlowName(String flowName) {
    this.flowName = flowName;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getStartTime() {
    return startTime;
  }

  public void setStartTime(Date startTime) {
    this.startTime = startTime;
  }

  public Date getNextExecTime() {
    return nextExecTime;
  }

  public void setNextExecTime(Date nextExecTime) {
    this.nextExecTime = nextExecTime;
  }

  public Date getRealStartTime() {
    return realStartTime;
  }

  public void setRealStartTime(Date realStartTime) {
    this.realStartTime = realStartTime;
  }
}
